import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
// 导入antd 全局的css 文件
import 'antd/dist/reset.css';
// 导入 History模式组件 
import { BrowserRouter as Router } from 'react-router-dom'
// 导入仓库
import {store,persistor} from './store/index'
import { Provider } from 'react-redux'
// 引入持久化插件
import { PersistGate } from 'redux-persist/lib/integration/react';
// 配置中文国际化
import { ConfigProvider } from 'antd';
// 导入中文包
import zhCN from 'antd/lib/locale/zh_CN';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Provider store={store}>
  <Router>
  <PersistGate loading={null} persistor={persistor}>
  <ConfigProvider locale={zhCN}>
    <App />
    </ConfigProvider>
  </PersistGate>
  </Router>
</Provider>
);
